package com.abc.mapper;


import com.abc.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: bc
 * @Date: 2024-11-17 12:34
 * @Description:
 */
public interface UserMapper {
    @Select("select * from user where username=#{username}")
    User selectUserByUsername(User user);
    @Insert("insert into user(username,password,permission) values(#{username},#{password},#{permission})")
    int insertUser(User user);

}
